import React, { memo } from "react";
import type { FC } from "react";
import styles from "./Question.module.scss";

type PropsType = {
  title: string;
  desc: string;
};
const QuestionInfo: FC<PropsType> = ({ title, desc }) => {
  return (
    <div className={styles.isCenter}>
      <h1>{title}</h1>
      <p>{desc}</p>
    </div>
  );
};

export default memo(QuestionInfo);
